/*
 * Decompiled with CFR 0.150.
 */
package com.gys.common.enums;

public enum ProClass {
    P1("1", "\u8f85\u6599"),
    P2("2", "\u5316\u5b66\u836f\u54c1"),
    P3("3", "\u751f\u7269\u5236\u54c1"),
    P4("4", "\u4e2d\u836f"),
    P5("5", "\u5668\u68b0");

    private String code;
    private String name;

    private ProClass(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public static String getName(String code) {
        for (ProClass form : ProClass.values()) {
            if (!form.getCode().equals(code)) continue;
            return form.name;
        }
        return null;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

